﻿
using System ;
using System.Windows.Forms ;

using MskEdit.Dxf.Model ;


namespace MskEdit.Dxf.Frontend
{

    public class DxfObjectTreeNode : TreeNode 
    {
        private DxfObject dxfEntitiy_ ;
        
        
        public static DxfObjectTreeNode TryFrom( DxfObject dxfEntitiy, DxfObjectTreeNode fallbackValue ) {
        
            if ( dxfEntitiy == null )
                return fallbackValue ;
                
            return new DxfObjectTreeNode( dxfEntitiy ) ;
        }
        
        
        public DxfObjectTreeNode( DxfObject dxfEntitiy ) {
        
            dxfEntitiy_ = dxfEntitiy ;
//            this.Text = dxfEntitiy.Name ;
        }
    }
}
